x
` and `y
` as input from the user and calculates the value of `x
` raised to the power of `y
` using the `**
` operator:x = float(input("Enter a number: "))
y = float(input("Enter another number: "))
result = x ** y
print(f"{x} raised to the power of {y} is {result}")
Enter a number: 4
Enter another number: 3
4.0 raised to the power of 3.0 is 64.0
input()
` function. We convert the input values to `float
` data type using the `float()
` function since we want to allow for decimal numbers as well.x
` raised to the power of `y
` using the `**
` operator and assign it to the variable `result
`.print()
` function to display the result to the user in a human-readable format using f-string formatting.